<?php

declare(strict_types=1);

namespace app\brand\controller;

use app\BaseController;
use app\brand\model\Brand;

class Index extends BaseController
{
    public function index()
    {
        $limit = $this->request->param('limit') ? $this->request->param('limit') : 10;
        $DBbrand = new Brand();
        $data = $DBbrand->limit($limit)->select();
        return result($data);
    }
}
